add_gdal_driver(TARGET gdal_MRSID SOURCES mrsidstream.h mrsidstream.cpp mrsiddataset.cpp)
gdal_standard_includes(gdal_MRSID)
gdal_target_link_libraries(TARGET gdal_MRSID LIBRARIES MRSID::MRSID)
if (GDAL_USE_LIBGEOTIFF_INTERNAL)
  if (RENAME_INTERNAL_LIBGEOTIFF_SYMBOLS)
    target_compile_definitions(gdal_MRSID PRIVATE -DRENAME_INTERNAL_LIBGEOTIFF_SYMBOLS)
  endif ()
  target_include_directories(gdal_MRSID PRIVATE $<TARGET_PROPERTY:geotiff,SOURCE_DIR>)
else ()
  target_include_directories(gdal_MRSID PRIVATE ${GEOTIFF_INCLUDE_DIR})
  gdal_target_link_libraries(TARGET gdal_MRSID LIBRARIES GEOTIFF::GEOTIFF)
endif ()
